//
//  SaveTools.h
//  UI_15_Tools_Reachability
//
//  Created by dllo on 15/8/11.
//  Copyright (c) 2015年 liuchunling. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SaveTools : NSObject

// NSData
+ (BOOL)saveDataWithName:(NSInteger)name directory:(NSSearchPathDirectory)directory data:(NSData *)data;
+ (NSData *)readDataWithName:(NSInteger)name directory:(NSSearchPathDirectory)directory;

// NSString
+ (BOOL)saveStrWithName:(NSInteger)name directory:(NSSearchPathDirectory)directory str:(NSString *)str;
+ (NSString *)readStrWithName:(NSInteger)name directory:(NSSearchPathDirectory)directory;

// NSDictionary
+ (BOOL)saveDicWithName:(NSInteger)name directory:(NSSearchPathDirectory)directory dic:(NSDictionary *)dic;
+ (NSDictionary *)readDicWithName:(NSInteger)name directory:(NSSearchPathDirectory)directory;

// NSArray
+ (BOOL)saveArrWithName:(NSInteger)name directory:(NSSearchPathDirectory)directory arr:(NSArray *)arr;
+ (NSArray *)readArrWithName:(NSInteger)name directory:(NSSearchPathDirectory)directory;

@end
